﻿<Window x:Class="BbsbWebService.AddItemWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Icon="MainIcon.ico"
    Title="Item Details" Height="591" Width="412">
    <Window.Resources>
        <DataTemplate x:Key="items" DataType="BbsbService.Classes.ControllableItem" >
            <StackPanel Margin="10 10 10 0" Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="groups" DataType="BbsbService.Classes.Group" >
            <StackPanel Margin="10 10 10 0" Orientation="Horizontal">
                <TextBlock Text="{Binding Path=Name}" />
            </StackPanel>
        </DataTemplate>
        <DataTemplate x:Key="propertiesTemplate" DataType="System.Reflection.PropertyInfo" >
            
        </DataTemplate>
    </Window.Resources>
    <Grid Height="555">
        <TextBox Height="23" Margin="101,14,169,0" Name="nameTxt" VerticalAlignment="Top" />
        <TextBox Height="23" Margin="101,55,169,0" Name="commandTxt" VerticalAlignment="Top" />
        <Label Height="28" HorizontalAlignment="Left" Margin="31,53,0,0" Name="label1" VerticalAlignment="Top" Width="66">Command</Label>
        <Label Height="28" HorizontalAlignment="Left" Margin="31,12,0,0" Name="label2" VerticalAlignment="Top" Width="66">Name</Label>
        <ListBox HorizontalAlignment="Left" Margin="8,168,0,173" Name="allGroups" Width="143" SelectionMode="Multiple" ItemTemplate="{StaticResource groups}" />
        <ListBox HorizontalAlignment="Right" Margin="0,168,10,173" Name="memberGroups" Width="143" SelectionMode="Multiple" ItemTemplate="{StaticResource groups}" />
        <Button Height="23" Margin="174,208,173,0" Name="joinGroup" VerticalAlignment="Top" Click="joinGroup_Click">&gt; &gt;</Button>
        <Button Height="23"  Margin="174,256,173,182" Name="removeGroup" Click="removeGroup_Click">&lt; &lt;</Button>
        <Button Height="23" Margin="48,0,0,144" Name="newGroupBtn" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="103" Click="newGroupBtn_Click">Add New Group</Button>
        <Button Height="23" Margin="163,0,124,23" Name="saveBtn" VerticalAlignment="Bottom" Click="saveBtn_Click">Save</Button>
        <Button Height="23" Margin="277,0,10,23" Name="cancelBtn" VerticalAlignment="Bottom" Click="cancelBtn_Click">Cancel</Button>
        <CheckBox Content="Is Important" Height="16" HorizontalAlignment="Left" Margin="292,81,0,0" Name="isImportantChk" VerticalAlignment="Top" FlowDirection="RightToLeft" Checked="isImportantChk_Checked" />
        <CheckBox FlowDirection="RightToLeft" Height="16" HorizontalAlignment="Left" Margin="235,103,0,0" Name="toggleItemChk" VerticalAlignment="Top" Content="Always state aware" Width="138" />
        <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,96,169,0" Name="itemTypeCbo" VerticalAlignment="Top" Width="120" SelectionChanged="itemTypeCbo_SelectionChanged" />
        <Label Content="Item Type" Height="28" HorizontalAlignment="Left" Margin="31,96,0,0" Name="label3" VerticalAlignment="Top" Width="66" />
        <Label Content="Available Groups" Height="28" HorizontalAlignment="Left" Margin="8,134,0,0" Name="label4" VerticalAlignment="Top" Width="105" />
        <Label Content="Groups Joined" Height="28" HorizontalAlignment="Right" Margin="0,134,55,0" Name="label5" VerticalAlignment="Top" Width="98" />
        <DataGrid AutoGenerateColumns="True" Height="86" HorizontalAlignment="Left" Margin="8,417,0,0" Name="additionalPropertiesGrid" VerticalAlignment="Top" Width="372" >
            
        </DataGrid>
    </Grid>
</Window>
